package com.lls.punchin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lls.punchin.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author lls
 * @since 2025-09-06
 */
@Getter
@Setter
@ToString
@TableName("sys_user")
public class SysUserEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 个性签名
     */
    @TableField("signature")
    private String signature;

    /**
     * 微信openid
     */
    @TableField("openid")
    private String openid;

    /**
     * 是否管理员，1-是，0-否
     */
    @TableField("is_admin")
    private Byte isAdmin;

    /**
     * 头像，关联sys_file_info.seq
     */
    @TableField("avatar")
    private Long avatar;
}
